$(function () {
    page();
})

function page() {

    $.post("/Mapply.do/WZYmapplySH", function (sdata) {
        let str = "     <tr class=\"table-success\">\n" +
            "            <th>生产计划编号</th>\n" +
            "            <th>设计人</th>\n" +
            "            <th>登记人</th>\n" +
            "            <th>登记时间</th>\n" +
            "            <th>备注</th>\n" +
            "            <th>操作</th>\n" +
            "        </tr>\n";
        $.each(sdata, function (index,item) {
            str += "     <tr >\n" +
                "            <td>" + item.applyid + "</td>\n" +
                "            <td>" + item.designer + "</td>\n" +
                "            <td>" + item.register + "</td>\n" +
                "            <td>" + item.registertime + "</td>\n" +
                "            <td>" + item.remark + "</td>\n" +
                "            <td><input type='button' class=\"btn btn-primary\" value='审核' onclick='cha_SH(" + item.applyid + ")'/> </td>\n" +
                "        </tr>\n";
        })
        $("#tableSH").html(str);
    })
}

function cha_SH(op) {
    localStorage.setItem("chaSH_ID",op);
    location.href="../../wen_zhi_yi/mApplykaishiSH.html";
}